package com.ruoyi.zuzhi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zuzhi.mapper.AddressListVoMapper;
import com.ruoyi.zuzhi.domain.AddressListVo;
import com.ruoyi.zuzhi.service.IAddressListVoService;

/**
 * 通讯录Service业务层处理
 * 
 * @author lgr
 * @date 2025-05-29
 */
@Service
public class AddressListVoServiceImpl implements IAddressListVoService
{
    @Autowired
    private AddressListVoMapper addressListVoMapper;

    /**
     * 查询通讯录
     * 
     * @param id 通讯录主键
     * @return 通讯录
     */
    @Override
    public AddressListVo selectAddressListVoById(Long id)
    {
        return addressListVoMapper.selectAddressListVoById(id);
    }

    /**
     * 查询通讯录列表
     * 
     * @param addressListVo 通讯录
     * @return 通讯录
     */
    @Override
    public List<AddressListVo> selectAddressListVoList(AddressListVo addressListVo)
    {
        return addressListVoMapper.selectAddressListVoList(addressListVo);
    }

    /**
     * 新增通讯录
     * 
     * @param addressListVo 通讯录
     * @return 结果
     */
    @Override
    public int insertAddressListVo(AddressListVo addressListVo)
    {
        return addressListVoMapper.insertAddressListVo(addressListVo);
    }

    /**
     * 修改通讯录
     * 
     * @param addressListVo 通讯录
     * @return 结果
     */
    @Override
    public int updateAddressListVo(AddressListVo addressListVo)
    {
        return addressListVoMapper.updateAddressListVo(addressListVo);
    }

    /**
     * 批量删除通讯录
     * 
     * @param ids 需要删除的通讯录主键
     * @return 结果
     */
    @Override
    public int deleteAddressListVoByIds(Long[] ids)
    {
        return addressListVoMapper.deleteAddressListVoByIds(ids);
    }

    /**
     * 删除通讯录信息
     * 
     * @param id 通讯录主键
     * @return 结果
     */
    @Override
    public int deleteAddressListVoById(Long id)
    {
        return addressListVoMapper.deleteAddressListVoById(id);
    }

    @Override
    public int updateDept(AddressListVo addressListVo) {
        return addressListVoMapper.updateDept(addressListVo);
    }
}
